package com.lagou.task09;

public class Circle extends Shape{
    private int r;
    private int x;
    private int y;
    Circle(){

    }
    Circle(int x, int y, int r){
        setX(x);
        setY(y);
        setR(r);
    }

    public void setR(int r) {
        this.r = r;
    }

    public int getR() {
        return r;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("r = "  + getR());
    }
}
